package com.qfedu.mtl.vo;

import java.util.ArrayList;
import java.util.List;

/**
 * @version v1.0
 * @Date 2023/10/7 15:44
 * @Author DARKER
 * @Email 1402216045@qq.com
 *
 * 适配前端Tree组件的数据结构格式
 */
public class TreeVO {

    private Integer id;
    private String title;
    private boolean checked;
    private List<TreeVO> children = new ArrayList<>();

    //层级组装
    private String  code;
    private String parentCode;



    @Override
    public String toString() {
        return "TreeVO{" +
                "id=" + id +
                ", title='" + title + '\'' +
                ", checked=" + checked +
                ", children=" + children +
                '}';
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getParentCode() {
        return parentCode;
    }

    public void setParentCode(String parentCode) {
        this.parentCode = parentCode;
    }

    public boolean isChecked() {
        return checked;
    }

    public void setChecked(boolean checked) {
        this.checked = checked;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public List<TreeVO> getChildren() {
        return children;
    }

    public void setChildren(List<TreeVO> children) {
        this.children = children;
    }
}
